import React from 'react'
import './BackDrop.css'
import ReactDOM from 'react-dom';
// 遮罩层

//获取backdrop根元素
const backDropRoot=document.getElementById('backdrop-root')

function BackDrop(props) {
  return ReactDOM.createPortal(<div className='backcrop'>{props.children}</div>,backDropRoot)
  
 
}

export default BackDrop